import { shallowRef } from 'vue'
import { DashboardIcon } from 'tdesign-icons-vue-next'

import Layout from '@renderer/layouts/index.vue'

export default [
  {
    path: '/report',
    component: Layout,
    redirect: '/report/git',
    name: 'report',
    meta: {
      title: '日报工具',
      icon: shallowRef(DashboardIcon),
      orderNo: 0
    },
    children: [
      {
        path: 'report-git',
        name: 'ReportGit',
        component: () => import('@renderer/pages/report/report-git/index.vue'),
        meta: {
          title: '提取git相关信息'
        }
      },
      {
        path: 'report-analysis',
        name: 'ReportAnalysis',
        component: () => import('@renderer/pages/report/report-analysis/index.vue'),
        meta: {
          title: '日报数据分析'
        }
      }
    ]
  }
]
